package com.kfxie.service.impl;

import com.kfxie.domain.User;
import com.kfxie.mapper.UserMapper;
import com.kfxie.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userService")
public class UserServiceImp  implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findAll() {

        return userMapper.findAll();
    }

    @Override
    public void save(User u) {
        userMapper.save(u);
    }
}
